﻿using System;
using System.Windows.Forms;

namespace UIapp.Dialogos
{
    public partial class frmAcercaDe : Plantillas.frmDialogPlantilla
    {
        public frmAcercaDe()
        {
            InitializeComponent();

            this.pictureBox1.Image = new System.Drawing.Bitmap(Comun.systemConfig.RUTA_IMAGENES + "git-logo.ico");
            this.lblFechaCompilacion.Text = Comun.FechaCompilacion.ToString("dd.MM.yyyy");
            this.lblVersion.Text = Application.ProductVersion;
            this.lblCopyR.Text = this.lblCopyR.Text + " " + DateTime.Now.Year.ToString();
            if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
            {
                System.Deployment.Application.ApplicationDeployment ad = System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
                this.lblPublicacion.Text = ad.CurrentVersion.Major.ToString() + "." +
                   ad.CurrentVersion.Minor.ToString() + "." + ad.CurrentVersion.Build.ToString() + "." + ad.CurrentVersion.Revision.ToString();
            }
        }

        private void btnAceptar_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}

